package com.aaa.sys.mapper;

import com.aaa.sys.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author ykq
 * @since 2020-11-25
 */
public interface RoleMapper extends BaseMapper<Role> {


    List<String> queryRolesByUserId(Long userId);

    void saveRolePermission(@Param("roleId") Long roleId, @Param("menuIds") List<Long> menuIds);


    void deleteRolePermission(@Param("roleId") Long roleId);

    List<Long> queryRoleIdsByUserId(Long userId);
}
